package com.snow.campuslink.exceptionhandler;

import com.snow.campuslink.project.constant.Constant.SysConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * TODO
 *
 * @author Gaosl
 * @className FailBusinessException
 * @date 2021/3/3 14:19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FailBusinessException extends RuntimeException {
    private String code;

    private String message;


    public FailBusinessException(String message) {
        this.code= SysConstant.ResponseCode.FAIL;
        this.message=message;
    }
}
